#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>

class MainWindow;

namespace Ui {
  class Dialog;
}

class Dialog : public QDialog
{
  Q_OBJECT
  
public:
  explicit Dialog(QWidget *parent = 0);
  ~Dialog();

public slots:
  void run();

private:
  MainWindow *mainWindow;
  Ui::Dialog *ui;
  bool valid(const QString &IP);
};

#endif // DIALOG_H
